import request from '@/utils/request'

// 查询项目团队成员列表
export function listMembers(query) {
  return request({
    url: '/project/members/list',
    method: 'get',
    params: query
  })
}

// 查询项目团队成员详细
export function getMembers(teamMemberId) {
  return request({
    url: '/project/members/' + teamMemberId,
    method: 'get'
  })
}

// 新增项目团队成员
export function addMembers(data) {
  return request({
    url: '/project/members',
    method: 'post',
    data: data
  })
}

// 修改项目团队成员
export function updateMembers(data) {
  return request({
    url: '/project/members',
    method: 'put',
    data: data
  })
}

// 删除项目团队成员
export function delMembers(teamMemberId) {
  return request({
    url: '/project/members/' + teamMemberId,
    method: 'delete'
  })
}
